home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 44 / Amiga Format CD44 (1999-08-26)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-10].iso / -in_the_mag- / basics / blitz_readmes.lzx / CIAs_in_Blitz.readme < prev    next >
Text File  |  1983-01-31  |  915b  |  21 lines

  1. Short:    Example of using CIA interrupts in Blitz
  2. Author:   anton@ww.co.nz (Anton Reinauer) 
  3. Uploader: anton@ww.co.nz (Anton Reinauer)
  4. Version:  1.0
  5. Type:     dev/basic
  6. Requires: Blitz Basic2
  7.  
  8.   The Amiga has two CIA (complex interface adaptor) chips- CIA-A, and CIA-B.
  9. This code can access either of the 2 general purpose Timers on these chips.
  10. These timers can execute a section of code a set number of times a second
  11. (you can change how many times a second they fire), independant of your
  12. main code. This code is based on the CIA_Interval.c code on the developer
  13. CD. You can set up a variable from your main program to be updated by the
  14. Timer, or maybe set the interrupt to signal your main task after a set
  15. period of time.
  16.  
  17.   The CIA resource is a system legal way of allocating the timers, so your
  18. program can check if a timer is being used by another task, if it isn't
  19. then it can allocate it for itself.
  20.   
  21.